package com.trickytriads.events
{
	import com.trickytriads.controls.TileControl;
	
	import flash.events.Event;

	/**
	 * Event is called when a card is dropped onto the gameboard.
	 * 
	 * Conceptually, called by a tile control to let the parent (game board) know to make a move.
	 */
	public class GameBoardCardDroppedEvent extends Event
	{
		public static const GAMEBOARDCARDDROPPED_REQUEST:String = "gameBoardCardDroppedRequest";
		
		// The tile control onto which the card is being dropped
		public var _targetTileControl:TileControl;
		// The tile control which is being dropped
		public var _droppedTileControl:TileControl;
		
		public function GameBoardCardDroppedEvent(type:String, ttc:TileControl, dtc:TileControl)
		{
			super(type, false, false);
			this._targetTileControl = ttc;
			this._droppedTileControl = dtc;
		}
		
	}
}